Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for other icon libraries #33

Merged
merged 3 commits into from
Feb 8, 2014

Conversation

sman591
Copy link
Contributor

@sman591 sman591 commented Feb 5, 2014

Glyphicons are great and all, but I know multiple websites use other icon libraries (most commonly Font Awesome). Simple implementation:

Old icon syntax
icon: 'glyphicon glyphicon-bold'

New icon syntax
icon: { glyph: 'glyphicon glyphicon-bold', fa: 'fa fa-bold' }

Choosing icon library
The default icon library is glyphicons, as that is the default with Bootstrap. Too change to Font Awesome, for example:
$('textarea').markdown({iconLibrary: 'fa'})

Of course, still backwards compatible with the old syntax.

Defaulted with both Glyphicon and Font Awesome libraries. Backwards compatible with old syntax
@toopay
Copy link
Member

toopay commented Feb 6, 2014

@sman591 thanks, we definetely want this to be part of bootstrap markdown option.

It would be great if you can demonstrate this within github page branch as well?

@sman591
Copy link
Contributor Author

sman591 commented Feb 6, 2014

Sure, I'll go ahead and update that tonight

Reflects same naming convention as the "autofocus" option
@rmm5t
Copy link
Contributor

rmm5t commented Feb 6, 2014

👍 I use FontAwesome everywhere, so this would help a lot.

toopay added a commit that referenced this pull request Feb 8, 2014
Option for other icon libraries
@toopay toopay merged commit 1bb5aaf into refactory-id:master Feb 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants